/// id : 1633671345571110913
/// name : "names"
/// start : 1
/// createTime : "2023-03-08 15:50:45"
/// updateTime : "2023-03-09 11:29:36"
/// dflag : 1

class Message {
  late int id;
  late String name;
  late int start;
  late String createTime;
  late String updateTime;
  late int dflag;

  static Message? fromMap(Map<String, dynamic> map) {
    // ignore: unnecessary_null_comparison
    if (map == null) return null;
    Message messageBean = Message();
    messageBean.id = map['id'];
    messageBean.name = map['name'];
    messageBean.start = map['start'];
    messageBean.createTime = map['createTime'];
    messageBean.updateTime = map['updateTime'];
    messageBean.dflag = map['dflag'];
    return messageBean;
  }

  Map toJson() => {
    "id": id,
    "name": name,
    "start": start,
    "createTime": createTime,
    "updateTime": updateTime,
    "dflag": dflag,
  };
}